#ifndef WINDOW_H
#define WINDOW_H
/*---------------------------------------------------------------------------*/
#include <QWidget>
#include <string>
/*---------------------------------------------------------------------------*/
class QLabel;
class QPushButton;
class QLineEdit;
class QIcon;
class QStatusBar;
class QPaintEvent;
class FilterBox;
class MenuBox;
class BrowserBox;
class FileNode;
/*---------------------------------------------------------------------------*/
using namespace std;
/*---------------------------------------------------------------------------*/
class Window : public QWidget
{
	Q_OBJECT

	public:
	Window(char *path);
	~Window();


	private slots:
	
	void				directoryChanged(FileNode *fn);
	void				userTyping(QKeyEvent *event );
	void				filterClosed();
	void				filterChanged(string str);
	
	private:
	
	
	// Widgets
	QStatusBar 			*statusBar;
	MenuBox 			*menuBox;
	BrowserBox		*list;
	FilterBox			*filterBox;

	protected:
	void				paintEvent(QPaintEvent *event);
	virtual void 		closeEvent ( QCloseEvent * event );
};
/*---------------------------------------------------------------------------*/
#endif
